package com.ruoyi.dishes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 菜品管理对象 tb_dishes
 * 
 * @author txt
 * @date 2025-02-05
 */
public class TbDishes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String name;

    /** 菜品描述 */
    @Excel(name = "菜品描述")
    private String description;

    /** 菜品价格 */
    @Excel(name = "菜品价格")
    private BigDecimal price;

    /** 分类ID (对应菜品分类表中的category_id) */
    @Excel(name = "分类ID (对应菜品分类表中的category_id)")
    private Long categoryId;

    /** 营养信息 */
    @Excel(name = "营养信息")
    private String nutritionalInfo;

    /** 是否为推荐菜品 */
    @Excel(name = "是否为推荐菜品")
    private Integer isFeatured;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String picturePath;

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setNutritionalInfo(String nutritionalInfo) 
    {
        this.nutritionalInfo = nutritionalInfo;
    }

    public String getNutritionalInfo() 
    {
        return nutritionalInfo;
    }
    public void setIsFeatured(Integer isFeatured) 
    {
        this.isFeatured = isFeatured;
    }

    public Integer getIsFeatured() 
    {
        return isFeatured;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    @Override
    public String toString() {
        return "TbDishes{" +
                "dishId=" + dishId +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", categoryId=" + categoryId +
                ", nutritionalInfo='" + nutritionalInfo + '\'' +
                ", isFeatured=" + isFeatured +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", picturePath='" + picturePath + '\'' +
                '}';
    }
}
